.header {
    display: flex;
    width: 100%;
    background: linear-gradient(to right, #bfd9ff, #c8f0c8, #ffcccb);
    position: fixed; /* 固定位置 */
    top: 0; /* 固定在顶部 */
    left: 0; /* 固定在左边 */
    z-index: 1000; /* 保证在最上层 */
    height: 60px; /* 固定高度 */
  }
  
  .header-left {
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-center {
    width: 60%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .highlight-link {
    text-decoration: none;
    color: black;
    margin: 0 1rem; /* 增加链接之间的间距 */
    padding: 0.5rem; /* 增加悬停效果的触发区域 */
  }
  
  .highlight-link:hover {
    color: orange;
    background-color: rgba(255, 165, 0, 0.2); /* 设置悬停背景色 */
    border-radius: 0.25rem; /* 设置悬停背景色的圆角 */
  }
  
  .search-container {
    display: flex;
    align-items: center;
    margin-left: 1rem; /* 减少搜索框左侧间距 */
  }
  
  .search-bar {
    width: 700px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-right: none;
  }
  
  .search-button {
    background: linear-gradient(to right, #bfd9ff, #c8f0c8, #ffcccb);
    border: none;
    padding: 0.5rem;
    color: black;
    cursor: pointer;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
  }
  
  .header-right {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: gray;
    margin-right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  
  .avatar:hover {
    opacity: 0.8;
  }
  
  .avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }
  
  .login-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .orange-button {
    background: linear-gradient(to right, #bfd9ff, #c8f0c8, #ffcccb);
    border: none;
    padding: 0.5rem;
    color: black;
    cursor: pointer;
    margin-left: 50px;
  }
  .clickicon-div{
    padding-left: 50px;
    margin-top: 10px;
    font-size:50px;
    cursor: pointer;
  }

  .clickicon-div {
    position: relative;
    display: inline-block;
  }
  
  .unread-count {
    position: absolute;
    top: 1px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
  }

  .about-modal {
    position: fixed; /* 定位在页面上 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* 使用 flex 布局来居中内容 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明的黑色背景 */
    z-index: 1000; /* 确保该元素位于页面最前方 */
  }
  
  .about-content {
    width: 500px; /* 固定宽度 */
    height: 580px; /* 固定高度 */
    background-color: white; /* 背景颜色为白色 */
    border-radius: 10px; /* 圆角边框 */
    padding: 20px; /* 内边距 */
    position: relative; /* 用于放置关闭按钮 */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3); /* 添加阴影效果，使其更具立体感 */
  }
  
  .close-about-btn {
    position: absolute; /* 绝对定位，放在 about-content 内 */
    top: 10px;
    right: 10px;
    font-size: 24px; /* 字体大小 */
    cursor: pointer; /* 鼠标移上去变成指针，表示可点击 */
    color: #333; /* 字体颜色 */
  }
  .about-diejia{
    margin-top: 40px;
    height: 500px;
    border: #333 solid 1px;
  }
  .about-title{
    display: flex; /* 使用 flex 布局 */
    justify-content: center; /* 水平居中 */
  }
  .responsive-img {
    margin-left: 150px;
    height: 200px;
  }
  .goods-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding-left: 5rem; /* 增加左边距 */
    padding-right: 5rem; /* 增加右边距 */
    padding-top: 2rem;
  }
  
  .goods-item {
    width: calc(20% - 1rem); /* 每行显示5个商品，每个商品之间有1rem的间隔 */
    height: 400px; /* 固定高度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* 使定位子元素相对于商品项 */
    border: 1px solid #ccc;
    padding: 1rem;
    box-sizing: border-box;
    cursor: pointer;
  }
  
  .goods-img {
    width: 100%;
    height: 200px; /* 固定高度 */
    object-fit: cover; /* 图片填充方式 */
  }
  
  .good-blurb,
  .good-price {
  align-self: flex-start; /* 左对齐 */
  }
  
  .good-createUser {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
  }
  
  .good-createTime {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
  }
  
  .goods-item:hover {
    transform: scale(1.05); /* 鼠标悬停时放大 */
  }
  